//
//  ViewController.h
//  CamH
//
//  Created by ghu on 12-8-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#import "CamCaptureManager.h"
#import "FaceDetectManager.h"
#import "CamUtility.h"
#import "ZoomViewController.h"

#define CAMERA_CAPTUREMODE_PREVIEW  1
#define CAMERA_CAPTUREMODE_CAPTURE  2
@interface CameraViewController : BaseViewController <ZoomDelegate>
{
    BOOL _bZoomSliderHidden;
    NSTimer *_zoomHideTimer;
}

@property (nonatomic, retain) FaceDetectManager *m_pFaceDetectManager;

@property NSInteger m_captureMode;
@property (nonatomic, retain) IBOutlet UIView   *m_pViewPreview;
@property (nonatomic, retain) IBOutlet UIButton *m_pBtnTakePhoto;
@property (nonatomic, retain) IBOutlet UIButton *m_pBtnFaceDetect;
@property (nonatomic, retain) IBOutlet UIButton *m_pBtnFlash;
@property (nonatomic, retain) IBOutlet UIButton *m_pBtnSwitchCamera;

@property (nonatomic, retain) AVCaptureVideoPreviewLayer *m_pVideoPreviewLayer;
@property (nonatomic, retain) IBOutlet UIImageView       *m_pImageViewFocus;
@property (nonatomic, retain) ZoomViewController         *m_pZoomSlider;

@end
